<template>
  <div class="banner container-fluid">
    <div class="row pattern">
      <div class="col-12 floatBox">
        <div class="item d-none d-md-block"><img :src="bannerTextInfo.imgUrlOne"></div>
        <div class="item"><img :src="bannerTextInfo.imgUrlTwo"></div>
        <div class="item d-none d-md-block" v-if="this.$route.path=='/about'"><img src="https://lanhu.oss-cn-beijing.aliyuncs.com/pse7d8ad6dc7e2d8eb-982b-41ed-9561-14659083cdf0"></div>
        <div class="item d-none d-md-block" v-if="this.$route.path=='/about'"><img src="https://lanhu.oss-cn-beijing.aliyuncs.com/ps66f18de74947b494-853f-45d5-99af-20fae4ea2087"></div>
        <div class="item d-none d-md-block" v-if="this.$route.path=='/about'"><img src="https://lanhu.oss-cn-beijing.aliyuncs.com/pse7d8ad6dc7e2d8eb-982b-41ed-9561-14659083cdf0"></div>
        <div class="item d-none d-md-block" v-if="this.$route.path=='/about'"><img src="https://lanhu.oss-cn-beijing.aliyuncs.com/ps66f18de74947b494-853f-45d5-99af-20fae4ea2087"></div>
        <div class="item d-none d-md-block" v-if="this.$route.path=='/about'"><img src="https://lanhu.oss-cn-beijing.aliyuncs.com/ps7c123fe480d0a4e9-5c38-4d8a-8991-b47cdc38baa2"></div>
      </div>
    </div>
    <div class="row font">
      <div class="col-8 offset-2 ">
        <p>————————————</p>
        <p>{{bannerTextInfo.title}}</p>
        <p>{{bannerTextInfo.textInfo}}</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {

    }
  },
  // @bannerTextInfo
  // @params----title
  // @params----textInfo
  props: ['bannerTextInfo'],
  components: {

  },
  created() {

  },
  mounted() {
  //  console.log(this.$route.path=='/about')
  },
  methods: {

  },
}
</script>

<style lang="less" scoped>
.banner {
  // overflow: hidden;
  // max-width: 100%;
  height: 30rem;
  background: linear-gradient(
    180deg,
    rgba(92, 209, 219, 1),
    rgba(92, 197, 219, 1)
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  .pattern {
    overflow: hidden;
    width: 100%;
    top: 0;
    left: 0;
    // background-color: red;
    position: absolute;
    // position: relative;
    z-index: 1;
    .floatBox {
      height: 30rem;
    }
    .item {
      img {
        width: 100%;
        //   height: 100%;
      }
    }
    .item:nth-child(1) {
      position: absolute;
      top: -10rem;
      left: 6.31rem;
      height: 30.31rem;
      width: 40.94rem;
      img {
        width: 100%;
      }
    }
    .item:nth-child(2) {
      z-index: 999;
      position: absolute;
      // bottom: -33.81rem;
      bottom: 0;
      right: 11.5rem;
      width: 20.31rem;
      img {
        width: 100%;
      }
    }
    .item:nth-child(3) {
      z-index: 999;
      position: absolute;
      // bottom: -33.81rem;
      top: -10rem;
      left: -10rem;
      width: 20.31rem;
      img {
        width: 100%;
      }
    }
    .item:nth-child(4) {
      z-index: 999;
      position: absolute;
      // bottom: -33.81rem;
      top: -5rem;
      left: -5rem;
      width: 20.31rem;
      img {
        width: 100%;
      }
    }
    .item:nth-child(5) {
      z-index: 999;
      position: absolute;
      // bottom: -33.81rem;
      bottom: -10rem;
      right: -10rem;
      width: 20.31rem;
      img {
        width: 100%;
      }
    }
    .item:nth-child(6) {
      z-index: 999;
      position: absolute;
      // bottom: -33.81rem;
      bottom: -5rem;
      right: -5rem;
      width: 20.31rem;
      img {
        width: 100%;
      }
    }
    .item:nth-child(7) {
      z-index: 999;
      position: absolute;
      // bottom: -33.81rem;
      bottom: -13rem;
      left: 25rem;
      width: 20.31rem;
      img {
        width: 100%;
      }
    }
  }
  .font {
    display: flex;
    flex-direction: column;
    justify-content: center;
    p {
      position: relative;
      z-index: 3;
      color: #ffffff;
    }
    p:nth-child(2) {
      z-index: 3;
      font-size: 4.38rem;
      font-weight: 500;
    }
    p:nth-child(3) {
      font-size: 1.88rem;
      font-weight: 400;
    }
  }
}
</style>